﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace WebSocketChat.Services
{
    public partial class ChatService : ServiceBase
    {
        public ChatService()
        {
            InitializeComponent();
        }

        private static ServiceMain MainService = new ServiceMain();
        protected override void OnStart(string[] args)
        {
            MainService.Start();
        }

        protected override void OnStop()
        {
            MainService.Stop();
        }
    }

}
